import { Http } from "../utils/http";

class Base extends Http {
  constructor(props) {
    super(props);
  }

  //一键报警
  aKeyAlarm(longitude, latitude, address, alarmPhone) {
    return this.request({
      url: "/app/alarm/addAlarm",
      method: "post",
      data: {
        longitude,
        latitude,
        address,
        alarmPhone,
      },
    });
  }

  //意见反馈
  feedback(pics, details, delFlag, commid) {
    return this.request({
      url: "/mini/miniFeedback/addFeedBack",
      method: "post",
      data: {
        pics,
        details,
        delFlag,
        commid,
      },
    });
  }
}

export { Base };
